<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Index</title>
</head>
<body>

<!-- view层 ${} -->
<div id="app">
    <lummer v-for="item in items" v-bind:li="item"></lummer>

</div>

<!-- 导入Vue.js -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>

    // 定义的一个Vue组件Component
    Vue.component("lummer",{
        props: ['li'],
        template: "<li>{{li}}</li>"
    });

    var vm = new Vue({
        el: "#app",
        data: {
            items: ["java", 'linux', 'vue']
        },
        methods: {
        }
    });

</script>
</body>
</html>